package com.questetra.OAuth.core
{
    import flash.events.Event;
    
    public class OAuthEvent extends Event
    {
        public static const ON_REQUEST_TOKEN_RECEIVED: String = "onRequestTokenReceived";
        public static const ON_REQUEST_TOKEN_FAILED: String = "onRequestTokenFailed";
        public static const ON_ACCESS_TOKEN_RECEIVED: String = "onAccessTokenReceived";
        public static const ON_ACCESS_TOKEN_FAILED: String = "onAccessTokenFailed";
        public static const ON_REQUEST_COMPLETE:String = "onRequestComplete"; 
        
        public var data:String = new String ();

        public function OAuthEvent(type:String, res_deta:String = null, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
            this.data = res_deta;
        }
        
    }
}